package com.tbit.uqbike.service.business;

import com.tbit.uqbike.object.pojo.AdoptMachineBound;
import com.tbit.uqbike.object.pojo.dto.CommonDTO;
import com.tbit.uqbike.object.pojo.vo.BatchOperationMsgVO;
import com.tbit.common.entity.view.Result;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 车辆领养
 * @Date: 创建于 10:25 2020/8/14
 */
public interface AdoptMachineBoundService {
    /**
     * 分页
     */
    List<AdoptMachineBound> queryPage(String name, String userCode, Integer accountId, Integer accountUserId, Integer pageNO, Integer rowCount);

    /**
     * 总数
     */
    Integer queryCount(String name, String userCode, Integer accountId, Integer accountUserId);

    /**
     * 添加
     */
    Map<String, Object> insert(AdoptMachineBound adoptMachineBound, List<String> userCode);

    /**
     * 删除
     */
    void del(AdoptMachineBound adoptMachineBound);

    /**
     * 根据时间查询领养人的收益
     */
    List<CommonDTO> getAdoptMoney(Integer accountUserId, Long startTime, Long endTime);

    /**
     * 批量删除领养人车辆
     * @param adoptMachineBound adoptMachineBound
     */
    Result<BatchOperationMsgVO> batchDel(AdoptMachineBound adoptMachineBound);
}
